package com.ihisomp.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

/**
 * 标题: OrgTreeDto.java
 * 业务描述: 医疗机构树型DTO
 * 作者: zy
 * 日期: 2022/3/18
 * 版本: V1.0
 */
@ApiModel(value = "医疗机构树型数据类")
public class OrgTreeDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 机构主键
     */
    @ApiModelProperty(value = "机构主键")
    private String orgKey;

    /**
     * 机构名称
     */
    @ApiModelProperty(value = "机构名称")
    private String orgName;

    /**
     * 上级机构主键
     */
    @ApiModelProperty(value = "上级机构主键")
    private String parentOrgKey;

    /**
     * 子节点
     */
    @ApiModelProperty(value = "子节点集合")
    private List<OrgTreeDto> children;

    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public List<OrgTreeDto> getChildren() {
        return children;
    }

    public void setChildren(List<OrgTreeDto> children) {
        this.children = children;
    }

    public String getParentOrgKey() {
        return parentOrgKey;
    }

    public void setParentOrgKey(String parentOrgKey) {
        this.parentOrgKey = parentOrgKey;
    }

    @Override
    public String toString() {
        return "OrgTreeDto{" +
                "orgKey='" + orgKey + '\'' +
                ", orgName='" + orgName + '\'' +
                ", parentOrgKey='" + parentOrgKey + '\'' +
                ", children=" + children +
                '}';
    }
}
